﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ResourceBlender.Core {
    /// <summary>
    /// An exception thrown by ResourceBlender
    /// </summary>
    public class ResourceBlenderException : Exception {
        private int errorCode = 0;
        public int ErrorCode {
            get { return errorCode; }
            set { errorCode = value; }
        }

        public ResourceBlenderException() : base() { }
        public ResourceBlenderException(string message) : base(message) { }
        public ResourceBlenderException(string message, Exception innerException) : base(message, innerException) { }

        public ResourceBlenderException(int errorCode, string message)
            : this(message) {
            this.ErrorCode = errorCode;
        }
    }
}